projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b37ac78
)
(drain_message_queue): New function.
author
Andrew Innes
<andrewi@gnu.org>
Thu, 1 Jul 1999 19:48:55 +0000
(19:48 +0000)
committer
Andrew Innes
<andrewi@gnu.org>
Thu, 1 Jul 1999 19:48:55 +0000
(19:48 +0000)
src/w32xfns.c
patch
|
blob
|
history
diff --git
a/src/w32xfns.c
b/src/w32xfns.c
index 7c61b2415204d69746e82e3fbc4ffcc9bc524bcc..617eec7841b563f92e7828d90425a9ae9ede2a18 100644
(file)
--- a/
src/w32xfns.c
+++ b/
src/w32xfns.c
@@
-239,6
+239,19
@@
prepend_msg (W32Msg *lpmsg)
return (TRUE);
}
+/* Process all messages in the current thread's queue. */
+void
+drain_message_queue ()
+{
+ MSG msg;
+ while (PeekMessage (&msg, NULL, 0, 0, PM_REMOVE))
+ {
+ TranslateMessage (&msg);
+ DispatchMessage (&msg);
+ }
+}
+
+
/*
* XParseGeometry parses strings of the form
* "=<width>x<height>{+-}<xoffset>{+-}<yoffset>", where